<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <style>
        body {
            margin: 0;
            padding: 0;
            background: #e84118;
        }

        .search-box {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, 50%);
            background: #2f3640;
            height: 40px;
            border-radius: 40px;
            padding: 10px;
        }

        .search-btn {
            color: #e84118;
            float: right;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #2f3640;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        #search-text {
            background: none;
            height: 40px;
        }
    </style>
</head>

<body>
    <script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js">
    </script>
    <div class="search-box">
        <input type="text" id="search-text" placeholder="Type to search" />
        <a href="" class="search-btn">
            <i class="fas fa-search">
            </i>
        </a>
    </div>
</body>

</html>